/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.longview.io.modules.analysis.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.longview.io.common.persistence.Page;
import com.longview.io.common.service.CrudService;
import com.longview.io.modules.analysis.entity.GrassAnalysis;
import com.longview.io.modules.analysis.dao.GrassAnalysisDao;

/**
 * 草地分析Service
 * @author zf
 * @version 2018-04-24
 */
@Service
@Transactional(readOnly = true)
public class GrassAnalysisService extends CrudService<GrassAnalysisDao, GrassAnalysis> {

	public GrassAnalysis get(String id) {
		return super.get(id);
	}
	
	public GrassAnalysis getResult(GrassAnalysis grassAnalysis) {
		return dao.getResult(grassAnalysis);
	}
	
	public List<GrassAnalysis> findList(GrassAnalysis grassAnalysis) {
		return super.findList(grassAnalysis);
	}
	public List<GrassAnalysis> findListSumData(GrassAnalysis grassAnalysis) {
		return dao.findListSumData(grassAnalysis);
	}
	
	public Page<GrassAnalysis> findPage(Page<GrassAnalysis> page, GrassAnalysis grassAnalysis) {
		return super.findPage(page, grassAnalysis);
	}
	
	@Transactional(readOnly = false)
	public void save(GrassAnalysis grassAnalysis) {
		super.save(grassAnalysis);
	}
	
	@Transactional(readOnly = false)
	public void delete(GrassAnalysis grassAnalysis) {
		super.delete(grassAnalysis);
	}
	
	@Transactional(readOnly = false)
	public void updateIsExam(GrassAnalysis grassAnalysis) {
		dao.updateIsExam(grassAnalysis);
	}
	
}